package jt.com.jt809;

import jt.com.jt809.server.JT809Server;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ApplicationContext;

/**
 * JT809服务启动类
 *
 * @Author OuJiaJun
 * @Date 2024/4/22 15:11
 */
@SpringBootApplication
public class Jt809Application {
    public static void main(String[] args) {
        ApplicationContext context = new SpringApplicationBuilder(Jt809Application.class)
                .web(WebApplicationType.SERVLET)
                .run(args);
        JT809Server JT809Server = context.getBean(JT809Server.class);
        JT809Server.runServer();
    }
}
